package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class ChatRecord extends BaseDomain {
    private Chat chat;  // 聊天表

    private User sender;    // 发送者id

    private User receiver;  // 接受者

    private String content; // 每次聊天内容

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatime;  // 创建时间
}